FROM keymetrics/pm2:latest-alpine
WORKDIR /usr/src/app
ADD . /usr/src/app
RUN npm config set registry https://registry.npm.taobao.org/ && \  
    npm i && npm i pm2 -g
EXPOSE 9527
CMD pm2 start ./src/app.js